/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package jepi;

import db.MySQLManager;
import db.PropiedadesBD;
import jepi.ui.MainMDI;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import org.pushingpixels.substance.api.skin.SubstanceBusinessBlueSteelLookAndFeel;

/**
 *
 * @author Steve
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                try {
                    PropiedadesBD.cargar();
                    UIManager.setLookAndFeel(new SubstanceBusinessBlueSteelLookAndFeel());

                    //JFrame.setDefaultLookAndFeelDecorated(true);
                    //new AnnotationConfiguration().configure().buildSessionFactory();
                    //hibernate.HibernateUtil.getSessionFactory().openSession();
                    MySQLManager.InicializarConexionEstatica(PropiedadesBD.getConeccion_db(),PropiedadesBD.getUsuario_db(),PropiedadesBD.getPassword_db());
                    new MainMDI().setVisible(true);
                } catch (UnsupportedLookAndFeelException ex) {
                }
            }
        });
    }
}
